package com.gk.panda.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("biology_file")
@ApiModel("生物附件")
public class BiologyFile {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "附件id")
    private Integer id;

    @ApiModelProperty(value = "创建机构id")
    @TableField("org_id")
    private Integer orgId;

    @ApiModelProperty(value = "设备名称")
    @TableField("device_name")
    private String deviceName;

    @ApiModelProperty(value = "设备编号")
    @TableField("device_code")
    private String deviceCode;

    @ApiModelProperty(value = "拍摄地点")
    private String place;

    @ApiModelProperty(value = "生物名称")
    @TableField("biology_name")
    private String biologyName;

    @ApiModelProperty(value = "生物类别（0-动物，1-植物")
    @TableField("biology_kingdom")
    private Integer biologyKingdom;

    @ApiModelProperty(value = "文件类型（0-图片，1-视频")
    private Integer type;

    @ApiModelProperty(value = "文件地址")
    private String url;

    @ApiModelProperty(value = "生物数量")
    @TableField("biology_num")
    private Integer biologyNum;

    @ApiModelProperty(value = "拍摄时间")
    @TableField("shooting_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shootingTime;

    @ApiModelProperty(value = "经度")
    private String lot;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "行为")
    private String behavior;

    @ApiModelProperty(value = "是否封面  0-是，1-不是")
    @TableField("is_cover")
    private Integer isCover;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "备注")
    private String remark;
}
